#ifndef  _MAIN_MENU_FORM_H_
#define  _MAIN_MENU_FORM_H_
#include "ElementForm.h"
class MainMenuForm :public ElementForm
{

public:
	explicit MainMenuForm(ElementForm* parent ,const int &dispalyNum,const int & top,const int& left);
	int diplayNum() const;
	void setDisplayNum(int displayNum);
protected:
	virtual void paintEvent(QPaintEvent* event) override;
	virtual void mousePressEvent(QMouseEvent* event) override;
	virtual void mouseMoveEvent(QMouseEvent* event)override;
	virtual void mouseReleaseEvent(QMouseEvent* event) override;

	virtual void updateParam();
protected:
	QPoint _endPos;
	QPoint _startPos;
	bool _isPressed;
	int _displayNum;
	bool _isMoveFlag = false;
	int _topDistance = 142;
	int _leftDistance = 14;

};
#endif // ! _MAIN_MENU_WIDGET_H_



